package com.xywl.escort.view.treasure;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.ShoppingCartReq;
import com.xywl.escort.bean.ShoppingCartResp;
import com.xywl.escort.bean.ShoppingCartUpdateReq;
import com.xywl.escort.bean.ShoppingCartUpdateResp;

public class TreasureContract {

    interface Presenter extends BasePresenter {
        void takeView(TreasureContract.View view);

        void loadTreasureList(ShoppingCartReq req);

        void delShoppingCart(String skuIds, int position);

        void delShoppingCarts(String skuIds);

        void updateShopCart(ShoppingCartUpdateReq req);
    }

    interface View extends BaseView<Presenter> {
        void loadTreasureListSuccess(ShoppingCartResp resp);

        void loadTreasureListFailure();

        void delShoppingCartSuccess(BaseResp resp, int position);

        void delShoppingCartsSuccess(BaseResp resp);

        void delShoppingCartFailure();

        void updateShopCartSuccess(ShoppingCartUpdateResp resp);

        void updateShopCartFailure();
    }
}
